package cn.edu.fzu.homemaking.service;

import cn.edu.fzu.homemaking.domain.vo.OrderScoreVo;

import java.util.List;

/**
 * @Author jiebin
 * @Date 2023/4/3
 */
public interface OrderScoreService {
    /**
     * 添加用户评价
     * @param orderId
     * @param companyId
     * @param userId
     * @param score
     * @param comments
     */
    void insert(String orderId, Long companyId, Long userId, Integer score, String comments);

    /**
     * 评价列表
     * @param companyId
     * @param userId
     * @param startTime
     * @param endTime
     * @return
     */
    List<OrderScoreVo> list(Long companyId, Long userId, String startTime, String endTime);

    /**
     * 获取评价
     * @param orderId
     * @return
     */
    OrderScoreVo selectByOrderId(String orderId);
}
